package cn.itsource.ymcc.feignclient.fallbackFactory;

import cn.itsource.ymcc.feignclient.OrderFeignClient;
import cn.itsource.ymcc.result.JsonResult;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class OrderFeignClientFallbackFactory implements FallbackFactory<OrderFeignClient> {
    @Override
    public OrderFeignClient create(Throwable throwable) {
        return new OrderFeignClient() {
        };
    }
}
